package com.app.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_news")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class NewsModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;//标题
    private String content;//内容
    private String imaUrl;//插图
    private int type;//类型
    @TableField(exist = false)
    private String typeText;//类型

    private String Abstract;//摘要
    private String crtTime;
    @TableField(exist = false)
    private Integer limit;
    @TableField(exist = false)
    private Integer page;
    @TableField(exist = false)
    private String keyWord;
    @TableField(exist = false)
    private String startTime;
    @TableField(exist = false)
    private String endTime;
    private int deleteState;//删除状态0删除1未删除

}
